home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-17 / prbgi095.zip / DRIVERS.ASM < prev    next >
Assembly Source File  |  1992-06-17  |  65KB  |  1,178 lines

  1. MASM51
  2. .XALL
  3.  
  4. MaxDriversNo    = 16;  <----- If you want to define more drivers change this number
  5.  
  6. ; ----------------------------------------------------------------------
  7. ; Adding, deleting or changing the order of drivers definitions requires
  8. ; appriopriate changes in PRTGRAPH.H and PDrivers.pas.
  9. ; ----------------------------------------------------------------------
  10.  
  11. include drivers.inc
  12.  
  13.  MODEL FarStack large
  14. ;;.MODEL FarStack large pascal
  15. ifNdef WithCode
  16.    WithCode EQU 1
  17. endif
  18. IF WithCode
  19.  
  20.    .CODE
  21.  
  22.    EXTRN  Pascal PRT__DriversPtr: word:2
  23.    PUBLIC pascal PRT_LinkDriversDefinitions
  24.    PRT_LinkDriversDefinitions PROC pascal FAR
  25.                    mov  AX, seg PRT__DriversPtr
  26.                    mov  ES,AX
  27.                    mov  ES:PRT__DriversPtr, offset PRT__Drivers
  28.                    mov  ES:PRT__DriversPtr+2, seg PRT__Drivers
  29.                    RET
  30.    PRT_LinkDriversDefinitions ENDP
  31.  
  32. ENDIF
  33.  
  34.   .DATA
  35.  
  36.                even
  37. PRT__Drivers   LABEL WORD
  38. PRT__MaxDriverNo dw  ?  ; will be defined at the end of the file
  39.                  dw  2  ; index to PRT__DriversOffsets
  40. PRT__DriversOffsets  dw  MaxDriversNo dup (0) ; place for drivers definitions offsets
  41.  
  42.  
  43.         ; /*===============================*/
  44.         ; /* 9-pins : STAR SR              */
  45.         ; /*===============================*/
  46.          DriverDef
  47.          ;         4,                            /* ModesNo  */
  48.          CompressionType  0                      /* CompressionType */
  49.          DriverName      <'9 pins: STAR SR'> ;
  50.          ASCIInumbers    0;
  51.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  52.          InitPRTStr      NULL;                   /* Init PRT string */
  53.          EndPRTStr       NULL;                   /* End PRT string */
  54.          CompressedStr   NULL;                   /* CompressedStr  */
  55.          UncompressedStr NULL;                   /* UncompressedStr  */
  56.          LeftMargin     <1bh,'M'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  57.          TopMargin      <1bh,'R'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  58.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  59.  
  60.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  61.          ModeOptions  0;                         /* Planes, SimPlanes */
  62.          ColorPalette   NULL;                    /* Color palette        */
  63.          InitGraphStr   NULL;                    /* InitGraphStr */
  64.          EndGraphStr    NULL;                    /* EndGraphStr  */
  65.          PicWidth
  66.          InitTransfer <CR, _Esc,'g',0>,NULL
  67.          PinsPerHead    8
  68.          PixelsStep     1
  69.          EolnStr   NULL;                         /* EolnStr          */
  70.          SmallEoln  <_Esc,04Ah>,NULL,2,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  71.  
  72.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  73.          ModeOptions  0;                         /* Planes, SimPlanes */
  74.          ColorPalette   NULL;                    /* Color palette        */
  75.          InitGraphStr   NULL;                    /* InitGraphStr */
  76.          EndGraphStr    NULL;                    /* EndGraphStr  */
  77.          PicWidth
  78.          InitTransfer <CR, _Esc,'g',1>,NULL
  79.          PinsPerHead    8
  80.          PixelsStep     1
  81.          EolnStr   NULL;                         /* EolnStr          */
  82.          SmallEoln  <_Esc,04Ah>,NULL,2,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  83.  
  84.          ModeDef  120,144,2;                     /* X and Y densities, ColorsNo */
  85.          ModeOptions  0;                         /* Planes, SimPlanes */
  86.          ColorPalette       NULL;                /* Color palette        */
  87.          InitGraphStr   NULL;                    /* InitGraphStr */
  88.          EndGraphStr    NULL;                    /* EndGraphStr  */
  89.          PicWidth
  90.          InitTransfer <CR, _Esc,'g',1>,NULL
  91.          PinsPerHead    8
  92.          PixelsStep     2
  93.          EolnStr   NULL;                         /* EolnStr          */
  94.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  95.  
  96.          ModeDef  240,144,2;                     /* X and Y densities, ColorsNo */
  97.          ModeOptions  0;                         /* Planes, SimPlanes */
  98.          ColorPalette     NULL;                  /* Color palette        */
  99.          InitGraphStr   NULL;                    /* InitGraphStr */
  100.          EndGraphStr    NULL;                    /* EndGraphStr  */
  101.          PicWidth
  102.          InitTransfer <CR, _Esc,'g',3>,NULL
  103.          PinsPerHead    8
  104.          PixelsStep     2
  105.          EolnStr   NULL;                         /* EolnStr          */
  106.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  107.  
  108.          EndDriverDef   ; <----------------------------
  109.  
  110.  
  111.          ;/*===============================*/
  112.          ;/* 9 pins : IBM, EPSON */
  113.          ;/* graphic mode: Esc, 'K'/'L'/'Z'  */
  114.          ;/*===============================*/
  115.  
  116.          DriverDef
  117.          ;         4,                            /* ModesNo  */
  118.          CompressionType  0                      /* CompressionType */
  119.          DriverName     <'9 pins: IBM, EPSON'>
  120.          ASCIInumbers    0;
  121.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  122.          InitPRTStr      NULL;                   /* Init PRT string */
  123.          EndPRTStr       NULL;                   /* End PRT string */
  124.          CompressedStr   NULL;                   /* CompressedStr  */
  125.          UncompressedStr NULL;                   /* UncompressedStr  */
  126.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  127.          TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  128.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  129.  
  130.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  131.          ModeOptions  0;                         /* Planes, SimPlanes */
  132.          ColorPalette       NULL;                /* Color palette        */
  133.          InitGraphStr   NULL;                    /* InitGraphStr */
  134.          EndGraphStr    NULL;                    /* EndGraphStr  */
  135.          PicWidth
  136.          InitTransfer <CR, _Esc,'K'>,NULL
  137.          PinsPerHead    8
  138.          PixelsStep     1
  139.          EolnStr   NULL;                         /* EolnStr          */
  140.          SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  141.  
  142.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  143.          ModeOptions  0;                         /* Planes, SimPlanes */
  144.          ColorPalette       NULL;                /* Color palette        */
  145.          InitGraphStr   NULL;                    /* InitGraphStr */
  146.          EndGraphStr    NULL;                    /* EndGraphStr  */
  147.          PicWidth
  148.          InitTransfer <CR, _Esc,'L'>,NULL
  149.          PinsPerHead    8
  150.          PixelsStep     1
  151.          EolnStr   NULL;                         /* EolnStr          */
  152.          SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  153.  
  154.          ModeDef  120,216,2;                     /* X and Y densities, ColorsNo */
  155.          ModeOptions  0;                         /* Planes, SimPlanes */
  156.          ColorPalette       NULL;                /* Color palette        */
  157.          InitGraphStr   NULL;                    /* InitGraphStr */
  158.          EndGraphStr    NULL;                    /* EndGraphStr  */
  159.          PicWidth
  160.          InitTransfer <CR, _Esc,'L'>,NULL
  161.          PinsPerHead    8
  162.          PixelsStep     3
  163.          EolnStr   NULL;                         /* EolnStr          */
  164.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  165.  
  166.          ModeDef  240,216,2;                     /* X and Y densities, ColorsNo */
  167.          ModeOptions  0;                         /* Planes, SimPlanes */
  168.          ColorPalette       NULL;                /* Color palette        */
  169.          InitGraphStr   NULL;                    /* InitGraphStr */
  170.          EndGraphStr    NULL;                    /* EndGraphStr  */
  171.          PicWidth
  172.          InitTransfer <CR, _Esc,'Z'>,NULL
  173.          PinsPerHead    8
  174.          PixelsStep     3
  175.          EolnStr   NULL;                         /* EolnStr          */
  176.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  177.  
  178.          EndDriverDef   ; <----------------------------
  179.  
  180.  
  181.          ;/*===============================*/
  182.          ;/* 9 pins : EPSON  II            */
  183.          ;/* graphic mode: Esc '*' n       */
  184.          ;/*===============================*/
  185.  
  186.          DriverDef
  187.          ;         4,                            /* ModesNo  */
  188.          CompressionType  0                      /* CompressionType */
  189.          DriverName     <'9 pins: Epson II'>
  190.          ASCIInumbers    0;
  191.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  192.          InitPRTStr      NULL;                   /* Init PRT string */
  193.          EndPRTStr       NULL;                   /* End PRT string */
  194.          CompressedStr   NULL;                   /* CompressedStr  */
  195.          UncompressedStr NULL;                   /* UncompressedStr  */
  196.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  197.          TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  198.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  199.  
  200.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  201.          ModeOptions  0;                         /* Planes, SimPlanes */
  202.          ColorPalette       NULL;                /* Color palette        */
  203.          InitGraphStr   NULL;                    /* InitGraphStr */
  204.          EndGraphStr    NULL;                    /* EndGraphStr  */
  205.          PicWidth
  206.          InitTransfer <CR, _Esc,'*',0>,NULL
  207.          PinsPerHead    8
  208.          PixelsStep     1
  209.          EolnStr   NULL;                         /* EolnStr          */
  210.          SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  211.  
  212.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  213.          ModeOptions  0;                         /* Planes, SimPlanes */
  214.          ColorPalette       NULL;                /* Color palette        */
  215.          InitGraphStr   NULL;                    /* InitGraphStr */
  216.          EndGraphStr    NULL;                    /* EndGraphStr  */
  217.          PicWidth
  218.          InitTransfer <CR, _Esc,'*',1>,NULL
  219.          PinsPerHead    8
  220.          PixelsStep     1
  221.          EolnStr   NULL;                         /* EolnStr          */
  222.          SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  223.  
  224.          ModeDef  120,216,2;                     /* X and Y densities, ColorsNo */
  225.          ModeOptions  0;                         /* Planes, SimPlanes */
  226.          ColorPalette       NULL;                /* Color palette        */
  227.          InitGraphStr   NULL;                    /* InitGraphStr */
  228.          EndGraphStr    NULL;                    /* EndGraphStr  */
  229.          PicWidth
  230.          InitTransfer <CR, _Esc,'*',1>,NULL
  231.          PinsPerHead    8
  232.          PixelsStep     3
  233.          EolnStr   NULL;                         /* EolnStr          */
  234.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  235.  
  236.          ModeDef  240,216,2;                     /* X and Y densities, ColorsNo */
  237.          ModeOptions  0;                         /* Planes, SimPlanes */
  238.          ColorPalette       NULL;                /* Color palette        */
  239.          InitGraphStr   NULL;                    /* InitGraphStr */
  240.          EndGraphStr    NULL;                    /* EndGraphStr  */
  241.          PicWidth
  242.          InitTransfer <CR, _Esc,'*',3>,NULL
  243.          PinsPerHead    8
  244.          PixelsStep     3
  245.          EolnStr   NULL;                         /* EolnStr          */
  246.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  247.  
  248.          EndDriverDef   ; <----------------------------
  249.  
  250.          ;/*===============================*/
  251.          ;/* 9-pins : PANASONIC KX-P1124   */
  252.          ;/*===============================*/
  253.  
  254.          DriverDef
  255.          ;         4,                            /* ModesNo  */
  256.          CompressionType  0                      /* CompressionType */
  257.          DriverName       <'9 pins: Panasonic KX-P1124'>
  258.          ASCIInumbers    0;
  259.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  260.          InitPRTStr      NULL;                   /* Init PRT string */
  261.          EndPRTStr       NULL;                   /* End PRT string */
  262.          CompressedStr   NULL;                   /* CompressedStr  */
  263.          UncompressedStr NULL;                   /* UncompressedStr  */
  264.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  265.          TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  266.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  267.  
  268.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  269.          ModeOptions  0;                         /* Planes, SimPlanes */
  270.          ColorPalette       NULL;                /* Color palette        */
  271.          InitGraphStr   NULL;                    /* InitGraphStr */
  272.          EndGraphStr    NULL;                    /* EndGraphStr  */
  273.          PicWidth
  274.          InitTransfer <CR, _Esc,'K'>,NULL
  275.          PinsPerHead    8
  276.          PixelsStep     1
  277.          EolnStr   NULL;                         /* EolnStr          */
  278.          SmallEoln  <_Esc,04Ah>,NULL,5,2          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  279.  
  280.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  281.          ModeOptions  0;                         /* Planes, SimPlanes */
  282.          ColorPalette       NULL;                /* Color palette        */
  283.          InitGraphStr   NULL;                    /* InitGraphStr */
  284.          EndGraphStr    NULL;                    /* EndGraphStr  */
  285.          PicWidth
  286.          InitTransfer <CR, _Esc,'L'>,NULL
  287.          PinsPerHead    8
  288.          PixelsStep     1
  289.          EolnStr   NULL;                         /* EolnStr          */
  290.          SmallEoln  <_Esc,04Ah>,NULL,5,2;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  291.  
  292.          ModeDef  120,144,2;                     /* X and Y densities, ColorsNo */
  293.          ModeOptions  0;                         /* Planes, SimPlanes */
  294.          ColorPalette   NULL;                    /* Color palette        */
  295.          InitGraphStr   NULL;                    /* InitGraphStr */
  296.          EndGraphStr    NULL;                    /* EndGraphStr  */
  297.          PicWidth
  298.          InitTransfer <CR, _Esc,'L'>,NULL
  299.          PinsPerHead    8
  300.          PixelsStep     2
  301.          EolnStr   NULL;                         /* EolnStr          */
  302.          SmallEoln  <_Esc,04Ah>,NULL,5,4;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  303.  
  304.          ModeDef  240,144,2;                     /* X and Y densities,, ColorsNo */
  305.          ModeOptions  0;                         /* Planes, SimPlanes */
  306.          ColorPalette       NULL;                /* Color palette        */
  307.          InitGraphStr   NULL;                    /* InitGraphStr */
  308.          EndGraphStr    NULL;                    /* EndGraphStr  */
  309.          PicWidth
  310.          InitTransfer <CR, _Esc,'Z'>,NULL
  311.          PinsPerHead    8
  312.          PixelsStep     2
  313.          EolnStr   NULL;                         /* EolnStr          */
  314.          SmallEoln  <_Esc,04Ah>,NULL,5,4;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  315.          EndDriverDef   ; <----------------------------
  316.  
  317.          if 0
  318.             ;/*===============================*/
  319.             ;/* 9 pins : IBM, EPSON color */
  320.             ;/*===============================*/
  321.  
  322.             DriverDef
  323.             ;         4,                            /* ModesNo  */
  324.             CompressionType  0                      /* CompressionType */
  325.             DriverName       <'9 pins(color): IBM, EPSON'>
  326.             ASCIInumbers    0;
  327.             TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  328.             InitPRTStr      <_Esc,'U1'>;             /* Init PRT string */
  329.             EndPRTStr       NULL;                   /* End PRT string */
  330.             CompressedStr   NULL;                   /* CompressedStr  */
  331.             UncompressedStr NULL;                   /* UncompressedStr  */
  332.             LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  333.             TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  334.             ColorsStrings  <_Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  335.  
  336.             ModeDef  60,72,8;                       /* X and Y densities, ColorsNo */
  337.             ModeOptions  0;                         /* Planes, SimPlanes */
  338.             ColorPalette   NULL;                    /* Color palette        */
  339.             InitGraphStr   NULL;                    /* InitGraphStr */
  340.             EndGraphStr    NULL;                    /* EndGraphStr  */
  341.             PicWidth
  342.             InitTransfer <CR, _Esc,'K'>,NULL
  343.             PinsPerHead    8
  344.             PixelsStep     1
  345.             EolnStr   NULL;                         /* EolnStr          */
  346.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  347.  
  348.             ModeDef  120,72,8;                      /* X and Y densities, ColorsNo */
  349.             ModeOptions  0;                         /* Planes, SimPlanes */ /* ?????????????????????????????? */
  350.             ColorPalette       NULL;                /* Color palette        */
  351.             InitGraphStr   NULL;                    /* InitGraphStr */
  352.             EndGraphStr    NULL;                    /* EndGraphStr  */
  353.             PicWidth
  354.             InitTransfer <CR, _Esc,'L'>,NULL
  355.             PinsPerHead    8
  356.             PixelsStep     1
  357.             EolnStr   NULL;                         /* EolnStr          */
  358.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  359.  
  360.             ModeDef  120,216,8;                     /* X and Y densities */
  361.             ModeOptions  0;                         /* Planes, SimPlanes */
  362.             ColorPalette       NULL;                /* Color palette        */
  363.             InitGraphStr   NULL;                    /* InitGraphStr */
  364.             EndGraphStr    NULL;                    /* EndGraphStr  */
  365.             PicWidth
  366.             InitTransfer <CR, _Esc,'L'>,NULL
  367.             PinsPerHead    8
  368.             PixelsStep     3
  369.             EolnStr   NULL;                         /* EolnStr          */
  370.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  371.  
  372.             ModeDef  240,216,8;                     /* X and Y densities, ColorsNo */
  373.             ModeOptions  0;                         /* Planes, SimPlanes */
  374.             ColorPalette       NULL;                /* Color palette        */
  375.             InitGraphStr   NULL;                    /* InitGraphStr */
  376.             EndGraphStr    NULL;                    /* EndGraphStr  */
  377.             PicWidth
  378.             InitTransfer <CR, _Esc,'Z'>,NULL
  379.             PinsPerHead    8
  380.             PixelsStep     3
  381.             EolnStr   NULL;                         /* EolnStr          */
  382.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  383.             EndDriverDef   ; <----------------------------
  384.  
  385.          else
  386.  
  387.             ;/*===============================*/
  388.             ;/* 9 pins : IBM, EPSON color */
  389.             ;/*===============================*/
  390.             ;/* the same as previous but with Planes and SimPlanes bits on */
  391.             ;/* This introduces some optimalization in changing ribbon  */
  392.             ;/* current color but it assumes that any composed color */
  393.             ;/* can be build from colors c1 and c2 which are  */
  394.             ;/* power of 2. E.G. color orange(0x5) is composed */
  395.             ;/* of yellow(4) and red(1).                      */
  396.             ;/* It may not work for more than 7 colors available. */
  397.             DriverDef
  398.             ;         4,                            /* ModesNo  */
  399.             CompressionType  0                      /* CompressionType */
  400.             DriverName       <'9 pins(color): IBM, EPSON'>
  401.             ASCIInumbers    0;
  402.             TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  403.             InitPRTStr      <_Esc,'U1'>;             /* Init PRT string */
  404.             EndPRTStr       NULL;                   /* End PRT string */
  405.             CompressedStr   NULL;                   /* CompressedStr  */
  406.             UncompressedStr NULL;                   /* UncompressedStr  */
  407.             LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  408.             TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  409.             ColorsStrings  <_Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  410.  
  411.             ModeDef  60,72,8;                       /* X and Y densities, ColorsNo */
  412.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  413.             ColorPalette       NULL;                /* Color palette        */
  414.             InitGraphStr   NULL;                    /* InitGraphStr */
  415.             EndGraphStr    NULL;                    /* EndGraphStr  */
  416.             PicWidth
  417.             InitTransfer <CR, _Esc,'K'>,NULL
  418.             PinsPerHead    8
  419.             PixelsStep     1
  420.             EolnStr   NULL;                         /* EolnStr          */
  421.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  422.  
  423.             ModeDef  120,72,8;                      /* X and Y densities, ColorsNo */
  424.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */ /* ?????????????????????????????? */
  425.             ColorPalette       NULL;                /* Color palette        */
  426.             InitGraphStr   NULL;                    /* InitGraphStr */
  427.             EndGraphStr    NULL;                    /* EndGraphStr  */
  428.             PicWidth
  429.             InitTransfer <CR, _Esc,'L'>,NULL
  430.             PinsPerHead    8
  431.             PixelsStep     1
  432.             EolnStr   NULL;                         /* EolnStr          */
  433.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  434.  
  435.             ModeDef  120,216,8;                     /* X and Y densities, ColorsNo */
  436.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  437.             ColorPalette       NULL;                /* Color palette        */
  438.             InitGraphStr   NULL;                    /* InitGraphStr */
  439.             EndGraphStr    NULL;                    /* EndGraphStr  */
  440.             PicWidth
  441.             InitTransfer <CR, _Esc,'L'>,NULL
  442.             PinsPerHead    8
  443.             PixelsStep     3
  444.             EolnStr   NULL;                         /* EolnStr          */
  445.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  446.  
  447.             ModeDef  240,216,8;                     /* X and Y densities, ColorsNo */
  448.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  449.             ColorPalette       NULL;                /* Color palette        */
  450.             InitGraphStr   NULL;                    /* InitGraphStr */
  451.             EndGraphStr    NULL;                    /* EndGraphStr  */
  452.             PicWidth
  453.             InitTransfer <CR, _Esc,'Z'>,NULL
  454.             PinsPerHead    8
  455.             PixelsStep     3
  456.             EolnStr   NULL;                         /* EolnStr          */
  457.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  458.             EndDriverDef   ; <----------------------------
  459.          endif
  460.  
  461.  
  462.             ;/*===============================*/
  463.             ;/* 9 pins : Epson II color */
  464.             ;/*===============================*/
  465.             ;/* graphic mode: Esc '*' n */
  466.             ;/*
  467.             DriverDef
  468.             ;         4,                            /* ModesNo  */
  469.             CompressionType  0                      /* CompressionType */
  470.             DriverName       <'9 pins(color): Epson II'>
  471.             ASCIInumbers    0;
  472.             TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  473.             InitPRTStr      <_Esc,'U1'>;             /* Init PRT string */
  474.             EndPRTStr       NULL;                   /* End PRT string */
  475.             CompressedStr   NULL;                   /* CompressedStr  */
  476.             UncompressedStr NULL;                   /* UncompressedStr  */
  477.             LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  478.             TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  479.             ColorsStrings  <_Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  480.  
  481.             ModeDef  60,72,8;                       /* X and Y densities, ColorsNo */
  482.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  483.             ColorPalette       NULL;                /* Color palette        */
  484.             InitGraphStr   NULL;                    /* InitGraphStr */
  485.             EndGraphStr    NULL;                    /* EndGraphStr  */
  486.             PicWidth
  487.             InitTransfer <CR, _Esc,'*',0>,NULL
  488.             PinsPerHead    8
  489.             PixelsStep     1
  490.             EolnStr   NULL;                         /* EolnStr          */
  491.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  492.  
  493.             ModeDef  120,72,8;                      /* X and Y densities, ColorsNo */
  494.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */ /* ?????????????????????????????? */
  495.             ColorPalette       NULL;                /* Color palette        */
  496.             InitGraphStr   NULL;                    /* InitGraphStr */
  497.             EndGraphStr    NULL;                    /* EndGraphStr  */
  498.             PicWidth
  499.             InitTransfer <CR, _Esc,'*',1>,NULL
  500.             PinsPerHead    8
  501.             PixelsStep     1
  502.             EolnStr   NULL;                         /* EolnStr          */
  503.             SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  504.  
  505.             ModeDef  120,216,8;                     /* X and Y densities, ColorsNo */
  506.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  507.             ColorPalette       NULL;                /* Color palette        */
  508.             InitGraphStr   NULL;                    /* InitGraphStr */
  509.             EndGraphStr    NULL;                    /* EndGraphStr  */
  510.             PicWidth
  511.             InitTransfer <CR, _Esc,'*',1>,NULL
  512.             PinsPerHead    8
  513.             PixelsStep     3
  514.             EolnStr   NULL;                         /* EolnStr          */
  515.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  516.  
  517.             ModeDef  240,216,8;                     /* X and Y densities, ColorsNo */
  518.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  519.             ColorPalette       NULL;                /* Color palette        */
  520.             InitGraphStr   NULL;                    /* InitGraphStr */
  521.             EndGraphStr    NULL;                    /* EndGraphStr  */
  522.             PicWidth
  523.          InitTransfer <CR, _Esc,'*',3>,NULL
  524.             PinsPerHead    8
  525.             PixelsStep     3
  526.             EolnStr   NULL;                         /* EolnStr          */
  527.             SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  528.             EndDriverDef   ; <----------------------------
  529.  
  530.  
  531.          ;/*===============================*/
  532.          ;/* Epson LQ 1000                 */
  533.          ;/*===============================*/
  534.  
  535.          DriverDef
  536.          ;         5,                            /* ModesNo  */
  537.          CompressionType  0                      /* CompressionType */
  538.          DriverName       <'24 pins: Epson LQ1000'>
  539.          ASCIInumbers    0;
  540.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  541.          InitPRTStr      NULL;                   /* Init PRT string */
  542.          EndPRTStr       NULL;                   /* End PRT string */
  543.        CompressedStr   NULL;                   /* CompressedStr  */
  544.          UncompressedStr NULL;                   /* UncompressedStr  */
  545.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  546.          TopMargin      <_Esc,'r'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ??????????????? ?????????? */
  547.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  548.  
  549.          ModeDef  60,180,2;                      /* X and Y densities, ColorsNo */
  550.          ModeOptions  0;                         /* Planes, SimPlanes */
  551.          ColorPalette       NULL;                /* Color palette        */
  552.          InitGraphStr   NULL;                    /* InitGraphStr */
  553.          EndGraphStr    NULL;                    /* EndGraphStr  */
  554.          PicWidth
  555.          InitTransfer <CR, _Esc,'*',20h>,NULL
  556.          PinsPerHead    24
  557.          PixelsStep     1
  558.          EolnStr   NULL;                         /* EolnStr          */
  559.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  560.  
  561.          ModeDef  120,180,2;                     /* X and Y densities, ColorsNo */
  562.          ModeOptions  0;                         /* Planes, SimPlanes */
  563.        ColorPalette       NULL;                /* Color palette        */
  564.          InitGraphStr   NULL;                    /* InitGraphStr */
  565.          EndGraphStr    NULL;                    /* EndGraphStr  */
  566.          PicWidth
  567.          InitTransfer <CR, _Esc,'*',21h>,NULL
  568.          PinsPerHead    24
  569.          PixelsStep     1
  570.          EolnStr   NULL;                         /* EolnStr          */
  571.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  572.  
  573.          ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  574.          ModeOptions  0;                         /* Planes, SimPlanes */
  575.          ColorPalette       NULL;                /* Color palette        */
  576.          InitGraphStr   NULL;                    /* InitGraphStr */
  577.          EndGraphStr    NULL;                    /* EndGraphStr  */
  578.          PicWidth
  579.          InitTransfer <CR, _Esc,'*',27h>,NULL
  580.          PinsPerHead    24
  581.          PixelsStep     1
  582.          EolnStr   NULL;                         /* EolnStr          */
  583.        SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  584.  
  585.          ModeDef  360,180,2;                     /* X and Y densities, ColorsNo */
  586.          ModeOptions  0;                         /* Planes, SimPlanes */
  587.          ColorPalette       NULL;                /* Color palette        */
  588.          InitGraphStr   NULL;                    /* InitGraphStr */
  589.          EndGraphStr    NULL;                    /* EndGraphStr  */
  590.          PicWidth
  591.          InitTransfer <CR, _Esc,'*',28h>,NULL
  592.          PinsPerHead    24
  593.          PixelsStep     1
  594.        EolnStr   NULL;                         /* EolnStr          */
  595.        SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  596.  
  597.        ModeDef  360,360,2;                     /* X and Y densities, ColorsNo */
  598.        ModeOptions  0;                         /* Planes, SimPlanes */
  599.        ColorPalette       NULL;                /* Color palette        */
  600.        InitGraphStr   NULL                    /* InitGraphStr */
  601.        EndGraphStr    <_Esc,'@'>;               /* EndGraphStr  */
  602.        PicWidth
  603.        InitTransfer <CR, _Esc,'*',28h>,NULL
  604.        PinsPerHead    24
  605.        PixelsStep     2
  606.        EolnStr   NULL;                         /* EolnStr          */
  607.        SmallEoln  <_Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  608.        EndDriverDef   ; <----------------------------
  609.  
  610.        ;/*===============================*/
  611.        ;/*   IBM Pro X24                 */
  612.        ;/*===============================*/
  613.        DriverDef
  614.        ;         5,                            /* ModesNo  */
  615.        CompressionType  0                      /* CompressionType */
  616.        DriverName       <'24 pins: IBM Pro X24'>
  617.        ASCIInumbers    0;
  618.        TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  619.        InitPRTStr      NULL;                   /* Init PRT string */
  620.        EndPRTStr       NULL;                   /* End PRT string */
  621.        CompressedStr   NULL;                   /* CompressedStr  */
  622.        UncompressedStr NULL;                   /* UncompressedStr  */
  623.        LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  624.        TopMargin      <_Esc,'r'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  625.        ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  626.  
  627.        ModeDef  60,180,2;                      /* X and Y densities, ColorsNo */
  628.          ModeOptions  0;                         /* Planes, SimPlanes */
  629.          ColorPalette       NULL;                /* Color palette        */
  630.          InitGraphStr   NULL;                    /* InitGraphStr */
  631.          EndGraphStr    NULL;                    /* EndGraphStr  */
  632.          PicWidth
  633.          InitTransfer <CR, _Esc,'[g'>,<8>,-1
  634.          PinsPerHead    24
  635.          PixelsStep     1
  636.          EolnStr   NULL;                         /* EolnStr          */
  637.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  638.  
  639.        ModeDef  120,180,2;                     /* X and Y densities, ColorsNo */
  640.          ModeOptions  0;                         /* Planes, SimPlanes */
  641.          ColorPalette       NULL;                /* Color palette        */
  642.          InitGraphStr   NULL;                    /* InitGraphStr */
  643.          EndGraphStr    NULL;                    /* EndGraphStr  */
  644.          PicWidth
  645.          InitTransfer <CR, _Esc,'[g'>,<9>,-1
  646.          PinsPerHead    24
  647.          PixelsStep     1
  648.          EolnStr   NULL;                         /* EolnStr          */
  649.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  650.  
  651.        ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  652.          ModeOptions  0;                         /* Planes, SimPlanes */
  653.          ColorPalette       NULL;                /* Color palette        */
  654.          InitGraphStr   NULL;                    /* InitGraphStr */
  655.          EndGraphStr    NULL;                    /* EndGraphStr  */
  656.          PicWidth
  657.          InitTransfer <CR, _Esc,'[g'>,<11>,-1
  658.          PinsPerHead    24
  659.          PixelsStep     1
  660.          EolnStr   NULL;                         /* EolnStr          */
  661.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  662.  
  663.        ModeDef  360,180,2;                     /* X and Y densities, ColorsNo */
  664.          ModeOptions  0;                         /* Planes, SimPlanes */
  665.          ColorPalette       NULL;                /* Color palette        */
  666.          InitGraphStr   NULL;                    /* InitGraphStr */
  667.          EndGraphStr    NULL;                    /* EndGraphStr  */
  668.          PicWidth
  669.          InitTransfer <CR, _Esc,'[g'>,<12>,-1
  670.          PinsPerHead    24
  671.          PixelsStep     1
  672.          EolnStr   NULL;                         /* EolnStr          */
  673.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  674.  
  675.       ModeDef  360,360,2;                     /* X and Y densities, ColorsNo */
  676.          ModeOptions  0;                         /* Planes, SimPlanes */
  677.          ColorPalette       NULL;                /* Color palette        */
  678.          InitGraphStr   NULL;                    /* InitGraphStr */
  679.          EndGraphStr    <_Esc,'@'>;               /* EndGraphStr  */
  680.          PicWidth
  681.          InitTransfer <CR, _Esc,'[g'>,<12>,-1
  682.          PinsPerHead    24
  683.          PixelsStep     2
  684.          EolnStr   NULL;                         /* EolnStr          */
  685.          SmallEoln  <_FS,'3'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  686.          EndDriverDef   ; <----------------------------
  687.  
  688.          ;/*===============================*/
  689.          ;/* EPSON LQ860                   */
  690.          ;/*===============================*/
  691.          DriverDef
  692.          ;         5,                            /* ModesNo  */
  693.          CompressionType  0                      /* CompressionType */
  694.        DriverName       <'24 pins(color): EPSON LQ860'>
  695.          ASCIInumbers    0;
  696.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  697.          InitPRTStr      <_Esc,'U1'>;             /* Init PRT string */
  698.          EndPRTStr       NULL;                   /* End PRT string */
  699.          CompressedStr   NULL;                   /* CompressedStr  */
  700.          UncompressedStr NULL;                   /* UncompressedStr  */
  701.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  702.          TopMargin      NULL,NULL,1,1;             /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????????? */
  703.          ColorsStrings  <_Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  704.  
  705.          ModeDef  60,180,8;                      /* X and Y densities, ColorsNo */
  706.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  707.          ColorPalette       NULL;                /* Color palette        */
  708.          InitGraphStr   NULL;                    /* InitGraphStr */
  709.          EndGraphStr    NULL;                    /* EndGraphStr  */
  710.          PicWidth
  711.          InitTransfer <CR, _Esc,'*',20h>,NULL
  712.          PinsPerHead    24
  713.          PixelsStep     1
  714.          EolnStr   NULL;                         /* EolnStr          */
  715.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  716.  
  717.          ModeDef  120,180,8;                     /* X and Y densities, ColorsNo */
  718.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  719.          ColorPalette       NULL;                /* Color palette        */
  720.          InitGraphStr   NULL;                    /* InitGraphStr */
  721.          EndGraphStr    NULL;                    /* EndGraphStr  */
  722.          PicWidth
  723.          InitTransfer <CR, _Esc,'*',21h>,NULL
  724.          PinsPerHead    24
  725.          PixelsStep     1
  726.          EolnStr   NULL;                         /* EolnStr          */
  727.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  728.  
  729.          ModeDef  180,180,8;                     /* X and Y densities,, ColorsNo */
  730.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  731.          ColorPalette       NULL;                /* Color palette        */
  732.          InitGraphStr   NULL;                    /* InitGraphStr */
  733.          EndGraphStr    NULL;                    /* EndGraphStr  */
  734.          PicWidth
  735.          InitTransfer <CR, _Esc,'*',27h>,NULL
  736.          PinsPerHead    24
  737.          PixelsStep     1
  738.          EolnStr   NULL;                         /* EolnStr          */
  739.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  740.  
  741.          ModeDef  360,180,8;                     /* X and Y densities, ColorsNo */
  742.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  743.          ColorPalette       NULL;                /* Color palette        */
  744.          InitGraphStr   NULL;                    /* InitGraphStr */
  745.          EndGraphStr    NULL;                    /* EndGraphStr  */
  746.          PicWidth
  747.          InitTransfer <CR, _Esc,'*',28h>,NULL
  748.          PinsPerHead    24
  749.          PixelsStep     1
  750.          EolnStr   NULL;                         /* EolnStr          */
  751.          SmallEoln  <_Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  752.  
  753.          ModeDef  360,360,8;                     /* X and Y densities, ColorsNo */
  754.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  755.          ColorPalette       NULL;                /* Color palette        */
  756.          InitGraphStr   NULL;                    /* InitGraphStr */
  757.          EndGraphStr    <_Esc,'@'>;               /* EndGraphStr  */
  758.          PicWidth
  759.          InitTransfer <CR, _Esc,'*',28h>,NULL
  760.          PinsPerHead    24
  761.          PixelsStep     2
  762.          EolnStr        NULL;                    /* EolnStr          */
  763.          SmallEoln  <_Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  764.          EndDriverDef   ; <----------------------------
  765.  
  766.          ;/*===============================*/
  767.          ;/* 24 pin IBM Pro X24 (color)    */
  768.          ;/*===============================*/
  769.          DriverDef
  770.          ;         5,                            /* ModesNo  */
  771.          CompressionType  0                      /* CompressionType */
  772.          DriverName       <'24 pins(color): IBM Pro X24'>
  773.          ASCIInumbers    0;
  774.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  775.          InitPRTStr      <_Esc,'U1'>;             /* Init PRT string */
  776.          EndPRTStr       NULL;                   /* End PRT string */
  777.          CompressedStr   NULL;                   /* CompressedStr  */
  778.          UncompressedStr NULL;                   /* UncompressedStr  */
  779.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  780.          TopMargin      NULL,NULL,1,1;             /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  781.          ColorsStrings  <_Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  782.  
  783.          ModeDef  60,180,8;                      /* X and Y densities, ColorsNo */
  784.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  785.          ColorPalette       NULL;                /* Color palette        */
  786.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  787.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  788.          PicWidth
  789.          InitTransfer <CR, _Esc,'[g'>,<8>,-1
  790.          PinsPerHead    24
  791.          PixelsStep     1
  792.          EolnStr        NULL;                    /* EolnStr          */
  793.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  794.  
  795.          ModeDef  120,180,8;                     /* X and Y densities, ColorsNo */
  796.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  797.          ColorPalette       NULL;                /* Color palette        */
  798.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  799.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  800.          PicWidth
  801.          InitTransfer <CR, _Esc,'[g'>,<9>,-1
  802.          PinsPerHead    24
  803.          PixelsStep     1
  804.          EolnStr        NULL;                    /* EolnStr          */
  805.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  806.  
  807.          ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  808.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  809.          ColorPalette       NULL;                /* Color palette        */
  810.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  811.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  812.          PicWidth
  813.          InitTransfer <CR, _Esc,'[g'>,<11>,-1
  814.          PinsPerHead    24
  815.          PixelsStep     1
  816.          EolnStr        NULL;                    /* EolnStr          */
  817.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  818.  
  819.          ModeDef  360,180,8;                     /* X and Y densities, ColorsNo */
  820.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  821.          ColorPalette       NULL;                /* Color palette        */
  822.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  823.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  824.          PicWidth
  825.          InitTransfer <CR, _Esc,'[g'>,<12>,-1
  826.          PinsPerHead    24
  827.          PixelsStep     1
  828.          EolnStr        NULL;                    /* EolnStr          */
  829.          SmallEoln  <_Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  830.  
  831.          ModeDef  360,360,8;                     /* X and Y densities, ColorsNo */
  832.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  833.          ColorPalette       NULL;                /* Color palette        */
  834.          InitGraphStr   NULL;                    /* InitGraphStr */
  835.          EndGraphStr    <_Esc,'@'>;               /* EndGraphStr  */
  836.          PicWidth
  837.          InitTransfer <CR, _Esc,'[g'>,<12>,-1
  838.          PinsPerHead    24
  839.          PixelsStep     2
  840.          EolnStr        NULL;                    /* EolnStr          */
  841.          SmallEoln  <_FS,'3'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  842.          EndDriverDef   ; <----------------------------
  843.  
  844.             ;/* PaintJet */
  845.             ;/*    without Run Length Encoding compression     */
  846.             ;/*===============================*/
  847.             ;/* general PaintJet       */
  848.             ;/*===============================*/
  849.             DriverDef
  850.             ;         3,                            /* ModesNo  */
  851.             CompressionType  0                      /* CompressionType */
  852.             DriverName       <'PaintJet'>
  853.             ASCIInumbers    1;
  854.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  855.             InitPRTStr      <_Esc,'9', _Esc,'&s1C',_Esc,'*b0M'>;  /* Init PRT string */
  856.             EndPRTStr       <_Esc,'*r0B'>;                   /* End PRT string */
  857.             CompressedStr   NULL;                   /* CompressedStr  */
  858.             UncompressedStr NULL;                   /* UncompressedStr  */
  859.             LeftMargin     <_Esc,'&a'>,<'H'>,1,1;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  860.             TopMargin      <_Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  861.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  862.  
  863.             ModeDef  90,90,2;                       /* X and Y densities, ColorsNo */
  864.             ModeOptions  0;                         /* Planes, SimPlanes */
  865.             ColorPalette       NULL;                /* Color palette        */
  866.             InitGraphStr   <_Esc,'*t90R', _Esc,'*r1U', _Esc,'*r1A' >;
  867.             EndGraphStr    NULL;
  868.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  869.             InitTransfer <_Esc,'*b'>,<'W'>
  870.             PinsPerHead    1
  871.             PixelsStep     1
  872.             EolnStr        NULL;                    /* EolnStr          */
  873.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  874.  
  875.             ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  876.             ModeOptions  0;                         /* Planes, SimPlanes */
  877.             ColorPalette       NULL;                /* Color palette        */
  878.             InitGraphStr   <_Esc,'*t180R', _Esc,'*r1U', _Esc,'*r1A'>;
  879.             EndGraphStr    NULL;
  880.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  881.             InitTransfer <_Esc,'*b'>,<'W'>
  882.             PinsPerHead    1
  883.             PixelsStep     1
  884.             EolnStr        NULL;                    /* EolnStr          */
  885.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  886.  
  887.             ModeDef  90,90,16;                      /* X and Y densities, ColorsNo */
  888.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  889.             ColorPalette       NULL;                /* Color palette        */
  890.             InitGraphStr   <_Esc,'*t90R', _Esc,'*r4U', _Esc,'*r1A' >;
  891.             EndGraphStr    NULL;
  892.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  893.             InitTransfer <_Esc,'*b'>,<'V'>
  894.             PinsPerHead    1
  895.             PixelsStep     1
  896.             EolnStr        <_Esc,'*b0W'>;            /* EolnStr          */
  897.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  898.  
  899.             ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  900.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  901.             ColorPalette       NULL;                /* Color palette        */
  902.             InitGraphStr   <_Esc,'*t180R', _Esc,'*r3U', _Esc,'*r1A'>;
  903.             EndGraphStr    NULL;
  904.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  905.             InitTransfer <_Esc,'*b'>,<'V'>
  906.             PinsPerHead    1
  907.             PixelsStep     1
  908.             EolnStr        <_Esc,'*b0W'>;            /* EolnStr          */
  909.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  910.             EndDriverDef   ; <----------------------------
  911.  
  912.  
  913.             ;/*===============================*/
  914.             ;/* Hewlet Packard PaintJet       */
  915.             ;/*===============================*/
  916.             DriverDef
  917.             ;         4,                            /* ModesNo  */
  918.             CompressionType  PRT__RLE_COMPRESSION   /* CompressionType */
  919.             DriverName       <'HP PaintJet'>
  920.             ASCIInumbers    1;
  921.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  922.             InitPRTStr      <_Esc,'9', _Esc,'&s1C'>;  /* Init PRT string */
  923.             EndPRTStr       <_Esc,'*r0B'>;           /* End PRT string */
  924.             CompressedStr   <_Esc,'*b1M'>;           /* CompressedStr  */
  925.             UncompressedStr <_Esc,'*b0M'>;           /* UncompressedStr  */
  926.             LeftMargin     <_Esc,'&a'>,<'H'>,1,1;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  927.             TopMargin      <_Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  928.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  929.  
  930.             ModeDef  90,90,2;                       /* X and Y densities, ColorsNo */
  931.             ModeOptions  0;                         /* Planes, SimPlanes */
  932.             ColorPalette       NULL;                /* Color palette        */
  933.             InitGraphStr   <_Esc,'*t90R', _Esc,'*r1U', _Esc,'*r1A'>;
  934.             EndGraphStr    NULL;
  935.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  936.             InitTransfer <_Esc,'*b'>,<'W'>
  937.             PinsPerHead    1
  938.             PixelsStep     1
  939.             EolnStr        NULL;                    /* EolnStr          */
  940.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  941.  
  942.             ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  943.             ModeOptions  0;                         /* Planes, SimPlanes */
  944.             ColorPalette       NULL;                /* Color palette        */
  945.             InitGraphStr   <_Esc,'*t180R', _Esc,'*r1U', _Esc,'*r1A'>;
  946.             EndGraphStr    NULL;
  947.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  948.             InitTransfer <_Esc,'*b'>,<'W'>
  949.             PinsPerHead    1
  950.             PixelsStep     1
  951.             EolnStr        NULL;                    /* EolnStr          */
  952.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  953.  
  954.             ModeDef  90,90,16;                      /* X and Y densities, ColorsNo */
  955.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  956.             ColorPalette       NULL;                /* Color palette        */
  957.             InitGraphStr   <_Esc,'*t90R', _Esc,'*r4U', _Esc,'*r1A'>;
  958.             EndGraphStr    NULL;
  959.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  960.             InitTransfer <_Esc,'*b'>,<'V'>
  961.             PinsPerHead    1
  962.             PixelsStep     1
  963.             EolnStr        <_Esc,'*b0W'>;            /* EolnStr          */
  964.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  965.  
  966.             ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  967.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  968.             ColorPalette       NULL;                /* Color palette        */
  969.             InitGraphStr   <_Esc,'*t180R', _Esc,'*r3U', _Esc,'*r1A'>;
  970.             EndGraphStr    NULL;
  971.             PicWidth       <_Esc,'*r'>,<'S'>,1,1
  972.             InitTransfer <_Esc,'*b'>,<'V'>
  973.             PinsPerHead    1
  974.             PixelsStep     1
  975.             EolnStr        <_Esc,'*b0W'>;            /* EolnStr          */
  976.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  977.             EndDriverDef   ; <----------------------------
  978.  
  979.             ;/* LaserJet */
  980.             ;/*    without Run Length Encoding compression     */
  981.             ;/*===============================*/
  982.             ;/* general LaserJet       */
  983.             ;/*===============================*/
  984.             DriverDef
  985.             ;         4,                            /* ModesNo  */
  986.             CompressionType  0                      /* CompressionType */
  987.             DriverName       <'LaserJet'>
  988.             ASCIInumbers    1;
  989.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  990.             InitPRTStr      <_Esc,'9', _Esc,'&s1C', _Esc,'*b0M'>;  /* Init PRT string */
  991.             EndPRTStr       NULL;                   /* End PRT string */
  992.             CompressedStr   NULL;                   /* CompressedStr  */
  993.             UncompressedStr NULL;                   /* UncompressedStr  */
  994.             LeftMargin     <_Esc,'*p'>,<'X'>,3,10;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  995.             TopMargin      <_Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ????? */
  996.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  997.  
  998.             ModeDef  75,75,2;                       /* X and Y densities, ColorsNo */
  999.             ModeOptions  0;                         /* Planes, SimPlanes */
  1000.             ColorPalette       NULL;                /* Color palette        */
  1001.             InitGraphStr   <_Esc,'*t75R', _Esc,'*r1A' >;
  1002.             EndGraphStr    <_Esc,'*rB'>;
  1003.             PicWidth
  1004.             InitTransfer <_Esc,'*b'>,<'W'>
  1005.             PinsPerHead    1
  1006.             PixelsStep     1
  1007.             EolnStr        NULL;                    /* EolnStr          */
  1008.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1009.  
  1010.             ModeDef  100,100,2;                     /* X and Y densities, ColorsNo */
  1011.             ModeOptions  0;                         /* Planes, SimPlanes */
  1012.             ColorPalette       NULL;                /* Color palette        */
  1013.             InitGraphStr   <_Esc,'*t100R', _Esc,'*r1A' >;
  1014.             EndGraphStr    <_Esc,'*rB'>;
  1015.             PicWidth
  1016.             InitTransfer <_Esc,'*b'>,<'W'>
  1017.             PinsPerHead    1
  1018.             PixelsStep     1
  1019.             EolnStr        NULL;                    /* EolnStr          */
  1020.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1021.  
  1022.             ModeDef  150,150,2;                     /* X and Y densities, ColorsNo */
  1023.             ModeOptions  0;                         /* Planes, SimPlanes */
  1024.             ColorPalette       NULL;                /* Color palette        */
  1025.             InitGraphStr   <_Esc,'*t150R', _Esc,'*r1A'>;
  1026.             EndGraphStr    <_Esc,'*rB'>;
  1027.             PicWidth
  1028.             InitTransfer <_Esc,'*b'>,<'W'>
  1029.             PinsPerHead    1
  1030.             PixelsStep     1
  1031.             EolnStr        NULL;                    /* EolnStr          */
  1032.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1033.  
  1034.             ModeDef  300,300,2;                     /* X and Y densities, ColorsNo */
  1035.             ModeOptions  0;                         /* Planes, SimPlanes */
  1036.             ColorPalette       NULL;                /* Color palette        */
  1037.             InitGraphStr   <_Esc,'*t300R', _Esc,'*r1A'>;
  1038.             EndGraphStr    <_Esc,'*rB'>;
  1039.             PicWidth
  1040.             InitTransfer <_Esc,'*b'>,<'W'>
  1041.             PinsPerHead    1
  1042.             PixelsStep     1
  1043.             EolnStr        NULL;                    /* EolnStr          */
  1044.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1045.             EndDriverDef   ; <----------------------------
  1046.  
  1047.  
  1048.             ;/*===============================*/
  1049.             ;/* Hewlet Packard LaserJet       */
  1050.             ;/*===============================*/
  1051.             DriverDef
  1052.             ;         4,                            /* ModesNo  */
  1053.             CompressionType  PRT__RLE_COMPRESSION   /* CompressionType */
  1054.             DriverName       <'HP LaserJet'>
  1055.             ASCIInumbers    1;
  1056.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  1057.             InitPRTStr      <_Esc,'9', _Esc,'&s1C'>;  /* Init PRT string */
  1058.             EndPRTStr       NULL;                   /* End PRT string */
  1059.             CompressedStr   <_Esc,'*b1M'>;           /* CompressedStr  */
  1060.             UncompressedStr <_Esc,'*b0M'>;           /* UncompressedStr  */
  1061.             LeftMargin     <_Esc,'*p'>,<'X'>,3,10;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  1062.             TopMargin      <_Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  1063.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  1064.  
  1065.             ModeDef  75,75,2;                       /* X and Y densities, ColorsNo */
  1066.             ModeOptions  0;                         /* Planes, SimPlanes */
  1067.             ColorPalette       NULL;                /* Color palette        */
  1068.             InitGraphStr   <_Esc,'*t75R', _Esc,'*r1A'>;
  1069.             EndGraphStr    <_Esc,'*rB'>;
  1070.             PicWidth
  1071.             InitTransfer <_Esc,'*b'>,<'W'>
  1072.             PinsPerHead    1
  1073.             PixelsStep     1
  1074.             EolnStr        NULL;                    /* EolnStr          */
  1075.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1076.  
  1077.             ModeDef  100,100,2;                     /* X and Y densities, ColorsNo */
  1078.             ModeOptions  0;                         /* Planes, SimPlanes */
  1079.             ColorPalette       NULL;                /* Color palette        */
  1080.             InitGraphStr   <_Esc,'*t100R', _Esc,'*r1A'>;
  1081.             EndGraphStr    <_Esc,'*rB'>;
  1082.             PicWidth
  1083.             InitTransfer <_Esc,'*b'>,<'W'>
  1084.             PinsPerHead    1
  1085.             PixelsStep     1
  1086.             EolnStr        NULL;                    /* EolnStr          */
  1087.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1088.  
  1089.             ModeDef  150,150,2;                     /* X and Y densities, ColorsNo */
  1090.             ModeOptions  0;                         /* Planes, SimPlanes */
  1091.             ColorPalette       NULL;                /* Color palette        */
  1092.             InitGraphStr   <_Esc,'*t150R', _Esc,'*r1A'>;
  1093.             EndGraphStr    <_Esc,'*rB'>;
  1094.             PicWidth
  1095.             InitTransfer <_Esc,'*b'>,<'W'>
  1096.             PinsPerHead    1
  1097.             PixelsStep     1
  1098.             EolnStr        NULL;                    /* EolnStr          */
  1099.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1100.  
  1101.             ModeDef  300,300,2;                     /* X and Y densities, ColorsNo */
  1102.             ModeOptions  0;                         /* Planes, SimPlanes */
  1103.             ColorPalette       NULL;                /* Color palette        */
  1104.             InitGraphStr   <_Esc,'*t300R', _Esc,'*r1A'>;
  1105.             EndGraphStr    <_Esc,'*rB'>;
  1106.             PicWidth
  1107.             InitTransfer <_Esc,'*b'>,<'W'>
  1108.             PinsPerHead    1
  1109.             PixelsStep     1
  1110.             EolnStr        NULL;                    /* EolnStr          */
  1111.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1112.             EndDriverDef   ; <----------------------------
  1113.  
  1114.  
  1115.    if   0
  1116.          ;/*===============================*/
  1117.          ;/* 9 pins : EPSON                */
  1118.          ;/*===============================*/
  1119.          DriverDef
  1120.          ;         2,                            /* ModesNo  */
  1121.          CompressionType  0                      /* CompressionType */
  1122.          DriverName       <'9 pin: EPSON (9 pin graphic)'>
  1123.          ASCIInumbers    0;
  1124.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  1125.          InitPRTStr      NULL;                   /* Init PRT string */
  1126.          EndPRTStr       NULL;                   /* End PRT string */
  1127.          CompressedStr   NULL;                   /* CompressedStr  */
  1128.          UncompressedStr NULL;                   /* UncompressedStr  */
  1129.          LeftMargin     <_Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  1130.          TopMargin      <_Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  1131.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  1132.  
  1133.          ModeDef  120,72;                        /* X and Y densities, ColorsNo */
  1134.          ModeOptions  0;                         /* Planes, SimPlanes */
  1135.          ColorPalette       NULL;                /* Color palette        */
  1136.          InitGraphStr   NULL;                    /* InitGraphStr */
  1137.          EndGraphStr    NULL;                    /* EndGraphStr  */
  1138.          PicWidth
  1139.          InitTransfer <CR, _Esc,05Eh,1>,NULL
  1140.          PinsPerHead    9
  1141.          PixelsStep     1
  1142.          EolnStr        NULL;                    /* EolnStr          */
  1143.          SmallEoln  <_Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1144.  
  1145.          ModeDef  120,216,2;                     /* X and Y densities, ColorsNo */
  1146.          ModeOptions  0;                         /* Planes, SimPlanes */
  1147.          ColorPalette       NULL;                /* Color palette        */
  1148.          InitGraphStr   NULL;                    /* InitGraphStr */
  1149.          EndGraphStr    NULL;                    /* EndGraphStr  */
  1150.          PicWidth
  1151.          InitTransfer <CR, _Esc,05Eh,1>,NULL
  1152.          PinsPerHead    9
  1153.          PixelsStep     3
  1154.          EolnStr        NULL;                    /* EolnStr          */
  1155.          SmallEoln  <_Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1156.          EndDriverDef   ; <----------------------------
  1157.    endif
  1158.  
  1159.  
  1160. org PRT__MaxDriverNo
  1161.     dw   DriversNo
  1162.  
  1163.     if   DriversNo GT MaxDriversNo
  1164.          err Too many drivers definitions, change MaxDriversNo at the file beginning
  1165.          DriversNo = MaxDriversNo;
  1166.     endif
  1167.     d = 0
  1168.     org PRT__DriversOffsets
  1169.     Rept DriversNo
  1170.          d = d+1
  1171.          genstmnt  <D_offs>,,<=>,,<DriverDefOffs_>,%d
  1172.          dw        D_offs ; driver definition offset
  1173.     ENDM
  1174.  
  1175.      END
  1176.  
  1177.      END
  1178.